﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Remoting.Messaging;
using System.Text;
using System.Threading.Tasks;
using Xinchen.SOA.Manager.Api.Contracts;
using Xinchen.Utils;

namespace Xinchen.SOA.GateWay
{
    public class ApplicationContext
    {
        public static ApplicationContext Current
        {
            get
            {
                return CallContext.LogicalGetData("_applicationContext") as ApplicationContext;
            }
            set
            {

                CallContext.LogicalSetData("_applicationContext", value);
            }
        }

        public string ApplicationId { get; set; }

        public string ServiceName { get; set; }

        public string ServiceHostingAddress { get; set; }
        public string Action { get; set; }
    }
}
